package ru.spb.osll.myfit.client.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import ru.spb.osll.myfit.common.chart.Chart;
import ru.spb.osll.myfit.common.chart.ChartInfo;
import ru.spb.osll.myfit.common.chart.ChartTree;

import java.io.IOException;
import java.util.List;

@RemoteServiceRelativePath("charts")
public interface ChartsService extends RemoteService {
  List<Chart> getCharts(String path) throws IOException;

  Chart rebuildChart(String pageId, ChartInfo info) throws IOException;

  ChartTree getChartsTree();
}